<?php
echo $header;
echo $column_left;
echo $column_right;
$width_content = '100%';
if (($column_left) && ($column_right)) {
    $width_content = '48%';
} elseif (($column_left) || ($column_right)) {
    $width_content = '74%';
}
$style = '';
if ($column_left) {
    $style .= '; margin-left:1%';
}
if ($column_right) {
    $style .= '; margin-right:1%';
}
?>
<div class="content" style="width:<?php echo $width_content . $style; ?>"><?php echo $content_top; ?>
    <div class="breadcrumb">
        <?php foreach ($breadcrumbs as $breadcrumb) { ?>
            <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
        <?php } ?>
    </div>
    <ul data-role="listview" data-divider-theme="a">
        <li data-role="list-divider"><h1><?php echo $heading_title; ?></h1></li>
    </ul>
    <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="password">
        <div class="form" data-role="fieldcontain">
            <ul data-role="listview" data-divider-theme="a">
                <li data-role="list-divider"><?php echo $text_password; ?></li>
                <li>
                    <input class="large-field" placeholder="<?php echo $entry_password; ?>" type="password" name="password" value="" /><span class="required">*</span>
                    <?php if ($error_password) { ?>
                        <div class="error"><?php echo $error_password; ?></div>
                    <?php } ?>
                </li>
                <li>
                    <input class="large-field" placeholder="<?php echo $entry_confirm; ?>" type="password" name="confirm" value="" /><span class="required">*</span>
                    <?php if ($error_confirm) { ?>
                        <div class="error"><?php echo $error_confirm; ?></div>
                    <?php } ?>
                </li>
            </ul>
        </div>
        <div class="ui-body buttons">
            <fieldset class="ui-grid-a">
                <div class="ui-block-a left"><a data-role="button" href="<?php echo $back; ?>" class="button"><span><?php echo $button_back; ?></span></a></div>
                <div class="ui-block-b right"><a data-role="button" data-theme="c" onclick="$('#password').submit();" class="button"><span><?php echo $button_continue; ?></span></a></div>
            </fieldset>
        </div>
    </form>
    <?php echo $content_bottom; ?>
</div>
<?php echo $footer; ?>